{"ast":null,"code":"import _slicedToArray from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import React from'react';import{Home}from\"../../\";import{Dialogs}from\"../../../containers/\";import{Dialog}from\"../../../components/\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";var Im=function Im(){var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),dialogs=_React$useState2[0],setDialogs=_React$useState2[1];React.useEffect(function(){setDialogs(/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsxs(\"div\",{className:\"messenger__sidebar-item\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"messenger__sidebar-item-header\",children:/*#__PURE__*/_jsx(\"div\",{className:\"messenger__sidebar-item-header-top\",children:/*#__PURE__*/_jsx(\"span\",{children:\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0434\\u0438\\u0430\\u043B\\u043E\\u0433\\u043E\\u0432\"})})}),/*#__PURE__*/_jsx(\"div\",{className:\"messenger__sidebar-dialogs\",children:/*#__PURE__*/_jsx(Dialogs,{})})]})}));},[]);return/*#__PURE__*/_jsx(Home,{childrenFirst:dialogs,childrenSecond:/*#__PURE__*/_jsx(Dialog,{})});};export default Im;","map":{"version":3,"names":["React","Home","Dialogs","Dialog","Im","useState","dialogs","setDialogs","useEffect"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/pages/Home/Im/index.tsx"],"sourcesContent":["import React from 'react';\nimport {Home} from \"../../\";\nimport {Dialogs} from \"../../../containers/\";\nimport {Dialog} from \"../../../components/\";\n\nconst Im = () => {\n    const [dialogs, setDialogs] = React.useState<React.ReactNode>();\n\n    React.useEffect(() => {\n        setDialogs(\n            <>\n                <div className=\"messenger__sidebar-item\">\n                    <div className=\"messenger__sidebar-item-header\">\n                        <div className=\"messenger__sidebar-item-header-top\">\n                            <span>Список диалогов</span>\n                        </div>\n                    </div>\n                    <div className=\"messenger__sidebar-dialogs\">\n                        <Dialogs/>\n                    </div>\n                </div>\n            </>\n        );\n    }, []);\n\n    return (\n        <Home\n            childrenFirst={dialogs}\n            childrenSecond={<Dialog/>}\n        />\n    );\n}\n\nexport default Im;"],"mappings":"8IAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,OAAQC,IAAI,KAAO,QAAQ,CAC3B,OAAQC,OAAO,KAAO,sBAAsB,CAC5C,OAAQC,MAAM,KAAO,sBAAsB,CAAC,6IAE5C,GAAMC,GAAE,CAAG,QAALA,GAAE,EAAS,CACb,oBAA8BJ,KAAK,CAACK,QAAQ,EAAmB,oDAAxDC,OAAO,qBAAEC,UAAU,qBAE1BP,KAAK,CAACQ,SAAS,CAAC,UAAM,CAClBD,UAAU,cACN,sCACI,aAAK,SAAS,CAAC,yBAAyB,wBACpC,YAAK,SAAS,CAAC,gCAAgC,uBAC3C,YAAK,SAAS,CAAC,oCAAoC,uBAC/C,+GAA4B,EAC1B,EACJ,cACN,YAAK,SAAS,CAAC,4BAA4B,uBACvC,KAAC,OAAO,IAAE,EACR,GACJ,EACP,CACN,CACL,CAAC,CAAE,EAAE,CAAC,CAEN,mBACI,KAAC,IAAI,EACD,aAAa,CAAED,OAAQ,CACvB,cAAc,cAAE,KAAC,MAAM,IAAG,EAC5B,CAEV,CAAC,CAED,cAAeF,GAAE"},"metadata":{},"sourceType":"module"}